package com.wuzhazha.redisdemo.dao;

import com.wuzhazha.redisdemo.pojo.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @Author:wuzhazha
 * @Date: 2018/8/11 23:42
 * @Description:
 */
@Repository
public interface RoleDao {

    Role getRole(Long id);

    int deleteRole(Long id);

    int insertRole(Role role);

    int updateRole(Role role);

    List<Role> findRole(@Param("roleName") String roleName, @Param("note") String note);
}
